<?php

defined('_JEXEC') or die;

$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$this->language = $doc->language;
$this->direction = $doc->direction;

$params = $app->getTemplate(true)->params;

$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');

$doc->setHtml5(true);

if ($task == "edit" || $layout == 'form') {
    $fullWidth = 1;
}
else {
    $fullWidth = 0;
}

JHtml::_('jquery.framework');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/jquery.min.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/bootstrap.min.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/validate.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/html5fallback.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/chosen.jquery.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/helpsite.js');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.min.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/bootstrap-theme.min.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/ie10-viewport-bug-workaround.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/font-awesome.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');

// disable builtin bootstrap2.x
$headData = $doc->getHeadData();
$scripts = $headData['scripts'];
unset($scripts[JUri::root(true) . '/media/jui/js/jquery.min.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/bootstrap.min.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/jquery-noconflict.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/jquery-migrate.min.js']);
unset($scripts[JUri::root(true) . '/media/system/js/validate.js']);
unset($scripts[JUri::root(true) . '/media/system/js/html5fallback.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/chosen.jquery.min.js']);
unset($scripts[JUri::root(true) . '/media/system/js/helpsite.js']);
$headData['scripts'] = $scripts;
$doc->setHeadData($headData);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language ?>" lang="<?php echo $this->language ?>" dir="<?php echo $this->direction ?>">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <jdoc:include type="head" />
</head>
<body>
<!-- 顶部Banner -->
<div id="form-head" class="form_header">
    <span class="formlogo"><a href="/index.php"></a></span>
</div>
<div id="form-content">
    <jdoc:include type="message" />
    <jdoc:include type="component"/>
</div>
<div id="form-foot" class="form_foot">
    <div class="main-footer">
        <div class="container">
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">Product</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ How it works</a></li>
                    <li><a href="#">▶ Surpport</a></li>
                    <li><a href="#">▶ Download SDK</a></li>
                </ul>
            </div>
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">Developer</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ Getting Start</a></li>
                    <li><a href="#">▶ Documents</a></li>
                    <li>&nbsp;</li>
                </ul>
            </div>
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">About</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ AdGyde</a></li>
                    <li><a href="#">▶ Join Us</a></li>
                    <li><a href="#">▶ Contact Us</a></li>
                </ul>
            </div>
            <div class="col-md-5">
                <ul class="social list-inline">
                    <li><a href="https://plus.google.com/+AppanalyticsIo/posts" title="GooglePlus" target="_blank"><i class="fa fa-google-plus"></i></a></li>
                    <li><a href="https://twitter.com/appanalyticsio" title="Twitter" target="_blank"><i class="fa fa-twitter"></i></a></li>
                    <li><a href="https://www.facebook.com/AppAnalytics.io" title="Facebook" target="_blank"><i class="fa fa-facebook"></i></a></li>
                    <li><a href="https://www.linkedin.com/company/appanalytics-io" title="LinkedIn" target="_blank"><i class="fa fa-linkedin"></i></a></li>
                    <li><a href="https://instagram.com/appanalytics.io" title="Instagram" target="_blank"><i class="fa fa-instagram"></i></a></li>
                    <li class="row-end"><a href="https://www.pinterest.com/AppAnalytics/" title="Pinterest" target="_blank"><i class="fa fa-pinterest"></i></a></li>
                </ul>
                <p class="fontsize14 colsp">Stay up to date with the latest news and offers from AppAnalytics</p>
                <div class="form-container">
                    <form action="/Home/SignUp" class="signup-form navbar-form" method="post" role="form">
                        <div class="form-group">
                            <input class="form-control" id="signup-email" name="Email" placeholder="Your e-mail" required="true" type="email" value="">       
                        </div>
                        <button type="submit" class="btn btn-cta btn-cta-primary colwhite">Subscribe Now</button>
                    </form>                            
                </div>
            </div>
        </div>
    </div>
    <div class="copyright">
        <div class="container">Copyright @ 2015 (c) AdGyde</div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        
    })
</script>
</body>
</html>
